var app = getApp();
// var app = getApp({allowDefault: true})
// var Path = "local.sos.com";//本地
// var Path = "115.236.28.75:8088/carapi/"; // 窦子栋
// var Path = "192.168.0.77:8880/";// 麦克
// var Path = "192.168.0.113/carapi/";// 接口
var Path = "115.236.28.75:8088/carapi/"; // 线上地址
// var Path = "172.19.66.22:8080/";// 电科院地址

//var Path = "192.168.1.12:19393";// 龙龙测试
//var Path = "192.168.3.53:8088";//模拟器
var HOST_URL = 'http://' + Path;

var versions = '2.4.0'; // 版本号

var apis = {
	// 我是打点登录接口
	login: HOST_URL + "auth/oauth/token",
	user_info: HOST_URL + "sys/user/info",
	gpscoordinateline: HOST_URL + "gps/gpscoordinateline/queryAll",
	// 查找有无支线
	getCollectCount: HOST_URL + "gps/gpscoordinatedbx/getCollectCount",
	// 查询已采集坐标信息
	gpscoordinatecollect: HOST_URL + "gps/io/gps/gpscoordinatecollect/appQueryAll",
	// 查询未采集坐标信息
	queryAllByDate: HOST_URL + "gps/io/gps/gpscoordinatecollect/queryAllByDate",
	// 我是已采集杆塔数据回显
	gpscoordinatecollectInfo: HOST_URL + "gps/io/gps/gpscoordinatecollect/info/",
	// 查找杆塔信号
	getgpscoordinatedlj: HOST_URL + "gps/gpscoordinatedlj/getDljNum/",
	// 判断是否同杆
	ifSamePole: HOST_URL + "gps/io/gps/gpscoordinatecollect/ifSamePole/",
	// 查询支线id
	getRegionalList: HOST_URL + "gps/io/gps/gpscoordinatecollect/getRegionalList/",

	// 删除坐标信息
	deletes: HOST_URL + "gps/io/gps/gpscoordinatecollect/delete/",
	// 更新坐标信息
	appUpdate: HOST_URL + "gps/io/gps/gpscoordinatecollect/appUpdate",
	// 查询杆塔列表
	getCollectList: HOST_URL + 'gps/gpscoordinatedbx/getCollectList',
	// 查询表箱的最新序号
	getBdxNum: HOST_URL + 'gps/gpscoordinatedbx/getBdxNum',
	// 表箱删除
	gpscoordinatedbxappDelete: HOST_URL + 'gps/gpscoordinatedbx/appDelete/',
	// 表箱详情
	gpscoordinatedbxInfo: HOST_URL + 'gps/gpscoordinatedbx/info/',
	// 电梯井详情
	gpscoordinatedljInfo: HOST_URL + "gps/gpscoordinatedlj/info/",
	// 删除电缆井
	gpscoordinatedljdelete: HOST_URL + "gps/gpscoordinatedlj/delete/",
	// 保存点维信息
	saveAll: HOST_URL + "gps/gpscoordinatehwz/saveAll",
	// 我是表箱修改
	gpscoordinatedbx: HOST_URL + "gps/gpscoordinatedbx/update",
	// 获取杆塔序号
	getLatestNum: HOST_URL + "gps/io/gps/gpscoordinatecollect/getLatestNum/",

	// 电梯井上传图片
	gpscoordinatefile: HOST_URL + "gps/gpscoordinatefile/uploadFile",
	// 电缆井信息上传
	gpscoordinatedlj: HOST_URL + "gps/gpscoordinatedlj/update",
	// 电缆井删除图片
	gpscoordinatefiledelete: HOST_URL + "gps/gpscoordinatefile/delete/",
	// 获取·树状图
	getRelationNum: HOST_URL + 'gps/gpscoordinatedbx/getRelationNum',
	//环网站修改
	gpscoordinatehwz: HOST_URL + "gps/gpscoordinatehwz/update",
	//环网站详情
	gpscoordinatehwzinfo: HOST_URL + "gps/gpscoordinatehwz/info/",
	//环网站删除
	gpscoordinatehwzdelete: HOST_URL + "gps/gpscoordinatehwz/delete/",

	//配电室修改
	gpscoordinatepdsupdate: HOST_URL + "gps/gpscoordinatepds/update",
	//配电室详情
	gpscoordinatepdsinfo: HOST_URL + "gps/gpscoordinatepds/info/",
	//配电室删除
	gpscoordinatepdsdelete: HOST_URL + "gps/gpscoordinatepds/delete/",

	//箱变修改
	gpscoordinatexbupdate: HOST_URL + "gps/gpscoordinatexb/update",
	//箱变详情
	gpscoordinatexbinfo: HOST_URL + "gps/gpscoordinatexb/info/",
	//箱变删除
	gpscoordinatexbdelete: HOST_URL + "gps/gpscoordinatexb/delete/",
	//杆塔图片上传
	gpscoordinatefile1: HOST_URL + "gps/io/gps/gpscoordinatecollect/uploadFile01",
	// 获取设备列表
	getEquipList: HOST_URL + "gps/io/gps/gpscoordinatecode/list",
	// 获取历史轨迹
	getTrack: HOST_URL + "gps/io/gps/historypoints",
	// 获取线路管理列表
	gpscoordinatelinepage: HOST_URL + "gps/app/gpscoordinateline/page",
	// 线路编辑
	gpscoordinatelineSubmit: HOST_URL + "gps/app/gpscoordinateline",
	// // 我是汽車服務上傳接口
	// uploadimage:HOST_URL+"upload/image",
	// // 我是獲取省市區接口
	// getRegionData:HOST_URL+"rescue.address/getRegionData",
	// // 用户注册
	// register:HOST_URL+"passport/register",
	// //用户登录
	// login:HOST_URL+"Passport/Login",
	// //添加技师
	// add_machinist:HOST_URL+"machinist/add",
	// //技师列表展示
	// get_machinists:HOST_URL+"machinist/record",
	// //技师详情
	// detail_machinists:HOST_URL+"machinist/detail",
	// //删除技师
	// delete_machinists:HOST_URL+"machinist/delete",
	// //修改技师信息
	// edit_machinists:HOST_URL+"machinist/edit",
	// //上传图片
	// upload_image:HOST_URL+"upload/image",
	// //获取配件列表
	// get_parts:HOST_URL+"rescue.parts/getList",
	// //添加配件列表
	// add_parts:HOST_URL+"rescue.parts/add",
	// // 商家入駐申請
	// merchant:HOST_URL+"user/settlement",
	// // 添加服务
	// addmerchant:HOST_URL+"service/add",
	// // 修改服务
	// editmerchant:HOST_URL+"service/edit",
	// // 服务类型列表
	// merchant_list:HOST_URL+"rescue.service_type/getList",
	// // 商家信息
	// merchant_detail:HOST_URL+"user/detail",
	// //	获取维修订单列表
	// get_repair_orders:HOST_URL+"rescue.order_repair/lists",
	// //	维修订单详情
	// detail_repair_order:HOST_URL+"rescue.order_repair/detail",
	// //	维修订单商家接单
	// receive_repair_order:HOST_URL+"rescue.order_repair/receive",
	// //	维修订单受理订单（进行报价）
	// offer_repair_order:HOST_URL+"rescue.order_repair/offer",
	// //	维修订单受理订单（修改受理信息）
	// update_repair_order:HOST_URL+"rescue.order_repair/update",
	// //	维修订单已支付订单（指定项目维修完成）
	// repaired_repair_order:HOST_URL+"rescue.order_repair/repaired",
	// //	维修订单确认完成
	// finish_repair_order:HOST_URL+"rescue.order_repair/finish",
	// //	服务列表
	// service_lists:HOST_URL+"service/lists",
	// //验证码
	// send_code:HOST_URL+"Passport/sendvcode",
	// //找回密码
	// forget_password:HOST_URL+"passport/findPass",
	//    //救援订单详情
	//    rescue_order_details:HOST_URL+"rescue.order_sos/detail",
	//    //订单列表
	//    rescue_order_lists:HOST_URL+"rescue.order_sos/lists",
	//    //救援报价
	//    rescue_order_sos_offer:HOST_URL+"rescue.order_sos/offer",
	// // 维修订单各项状态数量
	// number_repair_order:HOST_URL+"rescue.order_repair/number",

	//    rescue_order_sos_offer:HOST_URL+"rescue.order_sos/offer",
	//    //更具地址获取经纬度
	//    region_geo:HOST_URL+"region/geo",
	//    //救援完成
	//    region_finish:HOST_URL+"rescue.order_sos/finish",
	//    //评价列表
	//    getCommentsByOrder:HOST_URL+"rescue.order_repair_comment/getCommentByOrder",
	// // 订单评价查询
	// get_comment:HOST_URL+"rescue.order_repair_comment/getCommentByOrder",
	// // 订单评价回复
	// submit_reply:HOST_URL+"rescue.order_repair_comment/comment",
	//    // 商户信息修改
	//    shopmessage_edit:HOST_URL+"user/edit",
	// // 救援订单各项状态数量
	// number_rescue_order:HOST_URL+"rescue.order_sos/number",
	// submit_reply:HOST_URL+"rescue.order_repair_comment/comment",
	//    // 根据商家id查询商户已有服务
	//    getList_ByShop:HOST_URL+"rescue.service_type/getListByShop",

	// //站内信 所有消息列表
	// get_message_list:HOST_URL+"rescue.message/record",
	// //站内信 读取一条信息
	// get_message_detail:HOST_URL+"rescue.message/readOne",
	// //站内信 未读消息列表
	// get_unread_list:HOST_URL+"rescue.message/unread",
	// //站内信 全部信息已读
	// read_all:HOST_URL+"rescue.message/readAll",

}

module.exports = {
	// 请求服务器根目录
	HOST_URL: HOST_URL,
	//接口列表
	apis: apis,
	versions: versions,
	Path
}